import {http} from "../http";

export function getIP(ip?:string,lang?:string) {
  return http({
    baseURL:'http://ip-api.com',
    url:`/json/${ip !== undefined ? ip : ''}${lang !== undefined ? `?lang=` + lang : ''}`,
    method: 'get',
  })
}
